package com.timesheet.gui.efforttracker.providers;

import java.util.Map;

import org.eclipse.jface.viewers.ILabelProviderListener;
import org.eclipse.jface.viewers.ITableLabelProvider;
import org.eclipse.swt.graphics.Image;

import com.timesheet.gui.efforttracker.container.UtilisationModelContainer;
import com.timesheet.server.common.models.EffortTrackerDTO;

public class UtilisationTableLabelProvier implements ITableLabelProvider {

	private boolean interated = false;

	@Override
	public void addListener(ILabelProviderListener arg0) {
		// TODO Auto-generated method stub

	}

	@Override
	public void dispose() {
		// TODO Auto-generated method stub

	}

	@Override
	public boolean isLabelProperty(Object arg0, String arg1) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public void removeListener(ILabelProviderListener arg0) {
		// TODO Auto-generated method stub

	}

	@Override
	public Image getColumnImage(Object arg0, int arg1) {
		
		return null;
	}

	@Override
	public String getColumnText(Object input, int index) {

		EffortTrackerDTO dto = (EffortTrackerDTO) input;
		if (index == 0) {
			return dto.getProjectId();
		}
		if (index == 1) {			
			return String.valueOf(dto.getHours());
		}

		return null;
	}

}
